GoogleNum = new Mojo.Model.Cookie("GoogleNum");
GooglePIN = new Mojo.Model.Cookie("PIN");
GoogleDelayCount = new Mojo.Model.Cookie("DelayCount");

function StageAssistant() {
}

StageAssistant.prototype.setup = function() {
	// Check whether the Google Voice number is already stored
	Mojo.Log.info("Opening Gdial");
    
    gMenuAttr = {
        omitDefaultItems: true
    };
    gMenuModel = {
        visible: true,
        items: [Mojo.Menu.editItem, { label: "Preferences...", command: 'do-prefs' }, Mojo.Menu.helpItem]
    };

	this.controller.pushScene('people-picker');
}

//	handleCommand - Setup handlers for menus: // 
StageAssistant.prototype.handleCommand = function(event){
    var currentScene = this.controller.activeScene();
    if (event.type == Mojo.Event.command) {
        switch (event.command) {
			case 'do-prefs':
				Mojo.Controller.stageController.pushScene("number-enter");
			break;
        }
    }
};

